package netTracker.network;

/**
 * Exception thrown when passing messages.
 * Modified from the original source by Dylan and Lauren.
 */
@SuppressWarnings("serial")
public class PostalException extends Exception {
	
	/**
	 * A constructor for the default message.
	 */
	public PostalException(){
		super();
	}

	/**
	 * A constructor for specified problems.
	 */
	public PostalException(String s){
		super("Exception with message: " + s);
	}
	
	/**
	 * A constructor for problems caused by Messages.
	 */
	public PostalException(Message m){
		super("Exception with message: " + m);
	}
	
	/**
	 * A constructor for problems caused by Addresses.
	 */
	public PostalException(Address a){
		super("Exception with address: " + a);
	}
}
